# coding=utf8

# Copyright 2018 JDCLOUD.COM
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# NOTE: This class is auto generated by the jdcloud code generator program.


class SpecInfo(object):

    def __init__(self, memoryGB=None, instanceClass=None, cpu=None, diskGB=None, maxConnection=None, bandwidthMbps=None, ipNumber=None, shard=None, azs=None):
        """
        :param memoryGB: (Optional) 内存大小（GB）
        :param instanceClass: (Optional) 实例规格，标准版不为空，4.0 自定义分片集群版规格为空，具体规格参考单分片规格
        :param cpu: (Optional) 实例CPU核数，0表示自定义分片集群版规格，CPU核数由分片数变化
        :param diskGB: (Optional) 实例磁盘大小（GB)，0表示自定义分片集群版规格，磁盘大小由分片数变化
        :param maxConnection: (Optional) 最大连接数，0表示自定义分片集群版规格，最大连接数由分片数变化
        :param bandwidthMbps: (Optional) 带宽（Mbps)，0表示自定义分片集群版规格，带宽由分片数变化
        :param ipNumber: (Optional) 需要的IP数，0表示自定义分片集群版规格，IP数由分片数变化
        :param shard: (Optional) 实例的分片列表信息，redis 2.8标准版、集群版以及redis 4.0标准版没有分片列表信息
        :param azs: (Optional) az列表
        """

        self.memoryGB = memoryGB
        self.instanceClass = instanceClass
        self.cpu = cpu
        self.diskGB = diskGB
        self.maxConnection = maxConnection
        self.bandwidthMbps = bandwidthMbps
        self.ipNumber = ipNumber
        self.shard = shard
        self.azs = azs
